package KatPhTests;

import Rout.GoBefore;
import org.testng.annotations.*;

public class KatBig {

    private GoBefore browser = new GoBefore();     
                
    @BeforeMethod
    public void setUp() throws Exception {
        System.out.println("\n Run test: " + getClass().getSimpleName());
           
        browser.xpFilename = "//*[@id=\"mainDetailsTable\"]/tbody/tr/td[1]/h1/a/span";
        browser.curURL = "http://kickass.to/it-s-entertainment-2014-hindi-950mb-720p-dvdscrrip-x264-team-ddh-rg-t9432912.html";
        browser.cssButton = "div.advertDownload > a.darkButton > span"; // css of button 1
        browser.repDir = getClass().getSimpleName();
    }    
    
    @Test //Big Button
    public void BigButton() throws Exception {
        
    
    
    browser.setUp();
    browser.testRun();
    browser.lpDetect();
    browser.verFilePresent();
    browser.verFilename();
    }             
   
    @AfterMethod
    public void ThearsDown() {
        browser.driver.quit();      
        
    }
    
}
